package math;

import java.util.Scanner;

public class GoodLuck {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.println("我行我素购物管理系统> 幸运抽奖\n");
		System.out.print("请输入4位会员号：");
		int num = input.nextInt();
		int no = num / 100 % 10;
		int random = (int) (Math.random() * 10);
		System.out.println("产生的随机数是：" + random);
		if (no == random) {
			System.out.println(num + "号客户是幸运客户，获得精美Mp3一个。");
		} else {
			System.out.println(num + "号客户，谢谢你的支持！");
		}
	}

}
